package com.weiwei.diancan.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by BMW on 2016/12/26.
 */
public class SelectOrder implements Parcelable {
    private String log_type;
    private String data_id;
    private String log_name;
    private String log_price;
    private String log_count;

    private String log_unit;

    @Override
    public String toString() {
        return "SelectOrder{" +
                "log_type='" + log_type + '\'' +
                ", data_id='" + data_id + '\'' +
                ", log_name='" + log_name + '\'' +
                ", log_price='" + log_price + '\'' +
                ", log_count='" + log_count + '\'' +
                '}';
    }

    public SelectOrder(String log_type, String data_id, String log_name, String log_price,
                       String log_count,String log_unit) {
        this.log_type = log_type;
        this.data_id = data_id;
        this.log_name = log_name;
        this.log_price = log_price;
        this.log_count = log_count;
        this.log_unit = log_unit;
    }

    public String getLog_type() {
        return log_type;
    }

    public void setLog_type(String log_type) {
        this.log_type = log_type;
    }

    public String getData_id() {
        return data_id;
    }

    public void setData_id(String data_id) {
        this.data_id = data_id;
    }

    public String getLog_name() {
        return log_name;
    }

    public void setLog_name(String log_name) {
        this.log_name = log_name;
    }

    public String getLog_price() {
        return log_price;
    }

    public void setLog_price(String log_price) {
        this.log_price = log_price;
    }

    public String getLog_count() {
        return log_count;
    }

    public void setLog_count(String log_count) {
        this.log_count = log_count;
    }

    public String getLog_unit() {
        return log_unit;
    }

    public void setLog_unit(String log_unit) {
        this.log_unit = log_unit;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.log_type);
        dest.writeString(this.data_id);
        dest.writeString(this.log_name);
        dest.writeString(this.log_price);
        dest.writeString(this.log_count);
        dest.writeString(this.log_unit);
    }

    protected SelectOrder(Parcel in) {
        this.log_type = in.readString();
        this.data_id = in.readString();
        this.log_name = in.readString();
        this.log_price = in.readString();
        this.log_count = in.readString();
        this.log_unit = in.readString();
    }

    public static final Parcelable.Creator<SelectOrder> CREATOR = new Parcelable.Creator<SelectOrder>() {
        @Override
        public SelectOrder createFromParcel(Parcel source) {
            return new SelectOrder(source);
        }

        @Override
        public SelectOrder[] newArray(int size) {
            return new SelectOrder[size];
        }
    };
}
